/*
* @Author: wanghongfucoder
* @Date:   2017-02-16 09:49:59
* @Last Modified by:   wanghongfucoder
* @Last Modified time: 2017-02-16 09:54:54
*/

import java.util.ArrayList;
import java.util.List;
public  class CriteriaMale implements Criteria {

	public List<Person> meetCriterial(List<Person> persons){
		List<Person> malePersons=new ArrayList<Person>();
		for (Person person : persons) {
			if (person.getGender().equalsIgnoreCase("MALE")){
				malePersons.add(person);
			}
		}
	return  malePersons;
	}
}